Skip to content

🐛 fix(cooled-prek): read hook dates from repo - #67

Closed
gaborbernat wants to merge 1 commit into
tox-dev:mainfrom
gaborbernat:fix/cooled-hooks-committed-cutoffs
Closed

gaborbernat wants to merge 1 commit into
tox-dev:mainfrom
gaborbernat:fix/cooled-hooks-committed-cutoffs

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

A turbohtml PR failed before its hooks ran because the shared check timed out reading a pinned package's upload date from PyPI. A transient metadata outage can therefore block an unrelated PR.

The dependency update job now records upload dates for exact hook pins. PR checks validate that committed record against the hook configuration and use it to admit the pinned release ahead of the seven-day cutoff. Ranges, transitive dependencies, and later releases remain under the cutoff.

Repositories using this shared workflow must commit .github/hook-pin-cutoffs.json before updating their workflow reference. A missing or stale record fails with an instruction to run refresh-pins when hook pins change.

An unrelated turbohtml PR failed when a PyPI metadata request timed out
before any hook ran. Record exact-pin upload dates during dependency updates
and validate the committed manifest in PR checks, so hook runs do not depend
on registry metadata availability.

BREAKING CHANGE: Callers must commit a refreshed hook-pin manifest before
updating this action.
@gaborbernat gaborbernat added the bug Something isn't working label Nov 11, 2026
@gaborbernat
gaborbernat deleted the fix/cooled-hooks-committed-cutoffs branch November 11, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant